<iframe id="parentFrame" onload="javascript:resize(this);" frameborder="0" scrolling="no" 
src="module/sender.php?jid=<?php echo $_GET['jid'];?>&uid=<?php echo $_GET['uid'];?>"></iframe>
<script language="javascript">
	function resize(iframe){
		var id= iframe.id;
		var newheight;
    	var newwidth;
		if(document.getElementById(id)){
        	newheight=document.getElementById(id).contentWindow.document.body.scrollHeight;
        	newwidth=document.getElementById(id).contentWindow.document.body.scrollWidth;
    	}
		document.getElementById(id).height= (newheight) + "px";
		document.getElementById(id).width= (newwidth) + "px"
	}
</script>